<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/upload.css" />
		</script>

	</head>

	<body>
		<a></a>
		<select id="test" name="">
			<option value="1">hahah</option>
			<option value="2">text2</option>
		</select>

	</body>
	<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
	<script>
	$("#test").change(function(){
		//var options = $("#test option:selected"); //获取选中的项
			//var sss = options.text();
			//$('a').append(sss);
			var v = $("#test").val();
			alert("http://juston.club/ran/up/upfile?name="+v)
	});
		
		
	/*$("#test").click(function() {
			var options = $("#test option:selected"); //获取选中的项
			var sss = options.text();
			$('a').append(sss);
			var v = $("#test").val();
			alert(v)
		)}*/
	</script>

</html>